package org.diysearch.dao.interfaces;

import java.sql.SQLException;
import java.util.List;

import org.diysearch.models.Comment;

public interface CommentDao {
	public Comment save(Comment c) throws SQLException;
	public int delete (Comment c) throws SQLException;
	public List<Comment> findByObject (int oid) throws SQLException;
	public Comment findById (int id) throws SQLException;
	public List<Comment> findByOwner (int owner) throws SQLException;
	public List<Comment> findByItemAndOid (int item, int oid) throws SQLException;
	
}
